package com.neusoft.aclome.cmp.cloud.server.jcce.dto.response;

import java.util.ArrayList;
import java.util.List;

public class GraphData {

    private Integer id;
    private String name;
    private String showFlag;
    private Integer state;
    private Integer cloudPlatformId;
    private List<GraphData> childList = new ArrayList<>();

    public GraphData() {

    }

    public GraphData(Integer id, String name, Integer state, Integer cloudPlatformId, List<GraphData> childList) {
        this.id = id == null ? cloudPlatformId : id;
        this.name = name;
        this.showFlag = "instance";
        this.state = state;
        this.cloudPlatformId = cloudPlatformId;
        this.childList = childList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShowFlag() {
        return showFlag;
    }

    public void setShowFlag(String showFlag) {
        this.showFlag = showFlag;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getCloudPlatformId() {
        return cloudPlatformId;
    }

    public void setCloudPlatformId(Integer cloudPlatformId) {
        this.cloudPlatformId = cloudPlatformId;
    }

    public List<GraphData> getChildList() {
        return childList;
    }

    public void setChildList(List<GraphData> childList) {
        this.childList = childList;
    }
}